//
//  BJJinPinClassTableViewCell.m
//  DangXiao
//
//  Created by APPLE on 16/12/6.
//  Copyright © 2016年 APPLE. All rights reserved.
//

#import "BJJinPinClassTableViewCell.h"

@implementation BJJinPinClassTableViewCell

- (void)initUI{
    _imgeViews = [[UIImageView alloc]init];
    _imgeViews.backgroundColor = [UIColor greenColor];
    [self addSubview:_imgeViews];
    [_imgeViews mas_makeConstraints:^(MASConstraintMaker *make) {
        make.left.mas_equalTo(BILIWIDTH(10));
        make.centerY.mas_equalTo(self.mas_centerY);
        make.size.mas_equalTo(CGSizeMake(BILIWIDTH(95), BILIHEIGHT(68)));
    }];
    
    _nameLabel = [Utils labelWithTitle:@"看得见快上课的上课的" titleFontSize:16 textColor:BlackTextColor backgroundColor:ClearColor alignment:1];
    [self addSubview:_nameLabel];
    [_nameLabel mas_makeConstraints:^(MASConstraintMaker *make) {
        make.left.equalTo(_imgeViews.mas_right).offset(BILIWIDTH(10));
        make.top.mas_equalTo(BILIHEIGHT(10));
    }];
    
    _contentLabel = [Utils labelWithTitle:@"看得见快上课的上课的" titleFontSize:14 textColor:GrayTextColor backgroundColor:ClearColor alignment:1];
    [self addSubview:_contentLabel];
    [_contentLabel mas_makeConstraints:^(MASConstraintMaker *make) {
        make.left.equalTo(_nameLabel);
        make.top.equalTo(_nameLabel.mas_bottom).offset(BILIHEIGHT(5));
    }];
    
    
    _timeLabel = [Utils labelWithTitle:@"10-17：00：00" titleFontSize:14 textColor:GrayTextColor backgroundColor:ClearColor alignment:1];
    [self addSubview:_timeLabel];
    [_timeLabel mas_makeConstraints:^(MASConstraintMaker *make) {
        make.left.equalTo(_nameLabel);
        make.bottom.mas_equalTo(-BILIHEIGHT(10));
    }];
    
    _amountLabel = [Utils labelWithTitle:@"播放 102902" titleFontSize:12 textColor:GrayTextColor backgroundColor:ClearColor alignment:1];
    [self addSubview:_amountLabel];
    [_amountLabel mas_makeConstraints:^(MASConstraintMaker *make) {
        make.right.mas_equalTo(BILIWIDTH(-10));
        make.bottom.mas_equalTo(_timeLabel);
    }];
    
    
}

@end
